<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmAbstractLogModel.cpp -->
  <title>QCtmAbstractLogModel Class | QCustomUi 1.10.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">QCustomUi 1.10.0</a></li>
<li><a href="index.html">QCustomUi</a></li>
<li>QCtmAbstractLogModel</li>
<li id="buildversion">QCustomUi 1.10.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#reimplemented-protected-functions">Reimplemented Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QCtmAbstractLogModel Class</h1>
<!-- $$$QCtmAbstractLogModel-brief -->
<p>日志 model 接口类. <a href="#details">More...</a></p>
<!-- @@@QCtmAbstractLogModel -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;QCtmAbstractLogModel.h&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="https://doc.qt.io/qt/qabstracttablemodel.html">QAbstractTableModel</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qctmlogmodel.html">QCtmLogModel</a></p>
</td></tr></table></div>
<ul>
<li><a href="qctmabstractlogmodel-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractlogmodel.html#QCtmAbstractLogModel">QCtmAbstractLogModel</a></b>(const QString &amp;<i>objectName</i>, QObject *<i>parent</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractlogmodel.html#dtor.QCtmAbstractLogModel">~QCtmAbstractLogModel</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractlogmodel.html#clear">clear</a></b>() = 0</td></tr>
</table></div>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractlogmodel.html#insertColumns">insertColumns</a></b>(int <i>column</i>, int <i>count</i>, const QModelIndex &amp;<i>parent</i> = QModelIndex()) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractlogmodel.html#insertRows">insertRows</a></b>(int <i>row</i>, int <i>count</i>, const QModelIndex &amp;<i>parent</i> = QModelIndex()) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractlogmodel.html#removeColumns">removeColumns</a></b>(int <i>column</i>, int <i>count</i>, const QModelIndex &amp;<i>parent</i> = QModelIndex()) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractlogmodel.html#removeRows">removeRows</a></b>(int <i>row</i>, int <i>count</i>, const QModelIndex &amp;<i>parent</i> = QModelIndex()) override</td></tr>
</table></div>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractlogmodel.html#logEvent">logEvent</a></b>(QCtmLogEvent *<i>e</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractlogmodel.html#retranslateUi">retranslateUi</a></b>()</td></tr>
</table></div>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qctmabstractlogmodel.html#event">event</a></b>(QEvent *<i>e</i>) override</td></tr>
</table></div>
<!-- $$$QCtmAbstractLogModel-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@QCtmAbstractLogModel -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmAbstractLogModel[overload1]$$$QCtmAbstractLogModelconstQString&QObject* -->
<h3 class="fn" id="QCtmAbstractLogModel">QCtmAbstractLogModel::<span class="name">QCtmAbstractLogModel</span>(const <span class="type"><a href="https://doc.qt.io/qt/qstring.html">QString</a></span> &amp;<i>objectName</i>, <span class="type"><a href="https://doc.qt.io/qt/qobject.html#QObject">QObject</a></span> *<i>parent</i>)</h3>
<p>构造一个日志 model 设置 <i>objectName</i> 和父对象 <i>parent</i>.</p>
<!-- @@@QCtmAbstractLogModel -->
<!-- $$$~QCtmAbstractLogModel[overload1]$$$~QCtmAbstractLogModel -->
<h3 class="fn" id="dtor.QCtmAbstractLogModel"><code>[virtual] </code>QCtmAbstractLogModel::<span class="name">~QCtmAbstractLogModel</span>()</h3>
<p>析构函数.</p>
<!-- @@@~QCtmAbstractLogModel -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn" id="clear"><code>[pure virtual] </code><span class="type">void</span> QCtmAbstractLogModel::<span class="name">clear</span>()</h3>
<p>清空日志.</p>
<!-- @@@clear -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn" id="event"><code>[override virtual protected] </code><span class="type">bool</span> QCtmAbstractLogModel::<span class="name">event</span>(<span class="type"><a href="https://doc.qt.io/qt/qevent.html">QEvent</a></span> *<i>e</i>)</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qobject.html#event">QObject::event</a>(QEvent *e).</p>
<!-- @@@event -->
<!-- $$$insertColumns[overload1]$$$insertColumnsintintconstQModelIndex& -->
<h3 class="fn" id="insertColumns"><code>[override virtual] </code><span class="type">bool</span> QCtmAbstractLogModel::<span class="name">insertColumns</span>(<span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>count</i>, const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html">QModelIndex</a></span> &amp;<i>parent</i> = QModelIndex())</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstractitemmodel.html#insertColumns">QAbstractItemModel::insertColumns</a>(int column, int count, const QModelIndex &amp;parent).</p>
<!-- @@@insertColumns -->
<!-- $$$insertRows[overload1]$$$insertRowsintintconstQModelIndex& -->
<h3 class="fn" id="insertRows"><code>[override virtual] </code><span class="type">bool</span> QCtmAbstractLogModel::<span class="name">insertRows</span>(<span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>count</i>, const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html">QModelIndex</a></span> &amp;<i>parent</i> = QModelIndex())</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstractitemmodel.html#insertRows">QAbstractItemModel::insertRows</a>(int row, int count, const QModelIndex &amp;parent).</p>
<!-- @@@insertRows -->
<!-- $$$logEvent[overload1]$$$logEventQCtmLogEvent* -->
<h3 class="fn" id="logEvent"><code>[virtual protected] </code><span class="type">void</span> QCtmAbstractLogModel::<span class="name">logEvent</span>(<span class="type"><a href="qctmlogevent.html">QCtmLogEvent</a></span> *<i>e</i>)</h3>
<p>日志事件 <i>e</i>.</p>
<!-- @@@logEvent -->
<!-- $$$removeColumns[overload1]$$$removeColumnsintintconstQModelIndex& -->
<h3 class="fn" id="removeColumns"><code>[override virtual] </code><span class="type">bool</span> QCtmAbstractLogModel::<span class="name">removeColumns</span>(<span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>count</i>, const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html">QModelIndex</a></span> &amp;<i>parent</i> = QModelIndex())</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstractitemmodel.html#removeColumns">QAbstractItemModel::removeColumns</a>(int column, int count, const QModelIndex &amp;parent).</p>
<!-- @@@removeColumns -->
<!-- $$$removeRows[overload1]$$$removeRowsintintconstQModelIndex& -->
<h3 class="fn" id="removeRows"><code>[override virtual] </code><span class="type">bool</span> QCtmAbstractLogModel::<span class="name">removeRows</span>(<span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>count</i>, const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html">QModelIndex</a></span> &amp;<i>parent</i> = QModelIndex())</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstractitemmodel.html#removeRows">QAbstractItemModel::removeRows</a>(int row, int count, const QModelIndex &amp;parent).</p>
<!-- @@@removeRows -->
<!-- $$$retranslateUi[overload1]$$$retranslateUi -->
<h3 class="fn" id="retranslateUi"><code>[virtual protected] </code><span class="type">void</span> QCtmAbstractLogModel::<span class="name">retranslateUi</span>()</h3>
<p>重新翻译UI.</p>
<!-- @@@retranslateUi -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
